{include file="file:$theme_global/_header.tpl"}

<div id="breadcrumb">
	<a href="/">home</a> &gt; <a href="/users">members</a> &gt; <a href="/profile/{$user.username}">{$user.username}</a> &gt; <a href="/user/edit">edit</a>
</div>

{include file="file:$theme_global/_messages.tpl"}
<form method="post" action="/user/edit" enctype="multipart/form-data">

<div id="user_info">
	<h2><!-- {$pagetitle} --> Edit your profile</h2>

	{include file="file:$theme_global/_user_image.tpl"}
	<div class="edit">
		<ul>
			{include file="file:$theme_global/_user_nav.tpl"}
		</ul>
	</div>
		<div class="inner">
			<fieldset>
				<p class="field">
					<label>Gender</label>
					{html_options name=gender options=$genders selected=$user.gender}					
				</p>
				<p class="field birthday">
					<label>Birthday</label>
					{html_select_date time=$user.birthday end_year=$end_year start_year=-100 month_value_format='%B' prefix='Birthday_'}	
				</p>
				<p class="field">
					<label for="country_code">Country</label>
					{html_options name=country_code options=$countries selected=$user.country_code}					
				</p>											
			</fieldset>	
			<button type="submit" class="submit">Submit</button>					
		</div>
	</div>
</div>

<div id="profile">
	<div class="content">
		<div class="title">
			<h2>Account</h2>
		</div>
		<p class="field">
			<label for="full_name">Full Name</label>
			<input maxlength="{$full_name_length}" type="text" value="{$user.full_name}" name="full_name" id="full_name" class="text{if count($errors.full_name) gt 0} LV_invalid_field{/if}" />
		</p>
		<p class="field">
			<label for="email">Email</label>
			<input type="text" value="{$user.email}" name="email" id="email" class="text" />
		</p>
	</div>
	
	<div class="content">
		<div class="title">
			<h2>Change Password</h2>
		</div>
		<p class="field">
			<label for="newpassword">New Password</label>
			<input type="password" value="" name="newpassword" id="newpassword" class="text" />
		</p>
		<p class="field">
			<label for="confirm">New Password (again)</label>
			<input type="password" value="" name="confirm" id="confirm" class="text" />
		</p>			
		
	</div>
	
	<div class="content">
		<div class="title">
			<h2><label for="aboutme">Statement</label></h2>
		</div>
		<p><textarea cols="10" rows="6" name="aboutme" id="aboutme">{$user.aboutme}</textarea></p>
	</div>
</div>

</form>

{include file="file:$theme_global/_footer.tpl"}